import request from '@/utils/request'

// 查询数据分发服务字段配置列表
export function listDbField(query) {
  return request({
    url: '/dataService/dbField/list',
    method: 'post',
    data: query
  })
}

// 查询数据分发服务字段配置数量
export function countDbField(query) {
  return request({
    url: '/dataService/dbField/count',
    method: 'post',
    data: query
  })
}

// 查询数据分发服务字段配置详细
export function getDbField(fieldId) {
  return request({
    url: '/dataService/dbField/' + fieldId,
    method: 'get'
  })
}

// 新增数据分发服务字段配置
export function addDbField(data) {
  return request({
    url: '/dataService/dbField',
    method: 'post',
    data: data
  })
}

// 修改数据分发服务字段配置
export function updateDbField(data) {
  return request({
    url: '/dataService/dbField',
    method: 'put',
    data: data
  })
}

// 删除数据分发服务字段配置
export function delDbField(fieldId) {
  return request({
    url: '/dataService/dbField/' + fieldId,
    method: 'delete'
  })
}

// 导出数据分发服务字段配置
export function exportDbField(query) {
  return request({
    url: '/dataService/dbField/export',
    method: 'post',
    data: query
  })
}
